import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { User } from './entities/user.entity';
import { ActivityFavorite } from '../activity/entities/activity-favorite.entity';
import { Activity } from '../activity/entities/activity.entity';
import { UserService } from './user.service';
import { UserController } from './user.controller';

@Module({
  imports: [
    TypeOrmModule.forFeature([
      User, 
      ActivityFavorite, 
      Activity,
      // 添加其他需要的实体
    ]),
  ],
  controllers: [UserController],
  providers: [UserService],
  exports: [UserService],
})
export class UserModule {}
